<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //通过字面量方法创建自定义对象
        var stu={
            name:'傻逼',
            age:35,
            size:18,
            show:function(){
                alert('我的名字是'+this.name+'我的尺寸是'+this.size+'我的年龄是'+this.age+'岁了')
            }
        }
        console.log(stu.name);
        console.log(stu.age);
        console.log(stu.size);
        stu.show();
        
    </script>
</head>
<body>
    
</body>
</html>